#!/usr/bin/python
# -*- coding: utf-8 -*-
'''
@date: 2011-11-07
@author: shell.xu
'''
import web
import user

def create_urls(baseurl):
    urls = (
        baseurl + '/', user.main,
        baseurl + '/login', user.login,
        baseurl + '/logout', user.logout,
        baseurl + '/register', user.register,
        baseurl + '/show/(.+)', user.show,
        baseurl + '/list', user.user_list,
        )
    web.config.urls['user_login'] = baseurl + '/login'
    web.config.urls['user_logout'] = baseurl + '/logout'
    web.config.urls['user_show'] = baseurl + '/show'
    return urls
